To add reporting capabilities to your application using the RDC:
When you add the RDC to your project, the program presents the Crystal Report Gallery dialog box. If you're not familiar with Crystal Reports, choose the Using Report Expert option and choose Project data from the Data tab in the Standard Report Expert when it appears. This enables you to select the newest technology, the Active Data recordsets for building your report. Select one of the ODBC(ADO) data sources from the combo box, add a new data source, or supply a connection string for an ADO OLE DB connection.
From the Standard Report Expert, you can build your report by adding fields, setting up grouping and totalling, specifying your sort options, adding charts and selection criteria if you wish, and even adding a professionally designed look. You can do that by using the various Expert tabs.
When you select Finish in the Standard Report Expert, the program automatically adds a form to your project and installs the Report Viewer on the form. It also writes the necessary code for displaying your report in the viewer and resizing the viewer whenever the form is resized.
Now that you have a report, you may want to manipulate it with code based on user input. If you haven't done so already, here is the point where you could build the UI for the user using Visual Basic.
Now you can write the code that ties the users UI selections to the report.
When you have completed the above, you can run the application and preview, print, or export the report using the UI controls you've set up to do it.
Now you have integrated the most powerful reporting tool into your application.
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |